<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>

        // instanceof 判断左边的实例化对象是否在右边的原型链上

        const arr = [];
        console.log(arr instanceof Array);   // true
        console.log(arr instanceof Object);  // true



        // 记录构造函数的

        console.log(arr.constructor === Array);  // true
        console.log(arr.constructor === Object)  // false


        // console.log(Array.constructor === Function);  // true



    </script>
</body>

</html>